package com.tledu.car.domain;

import com.tledu.carUse.domain.CarUse;
import com.tledu.common.annotation.Excel;
import com.tledu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车辆列表对象 car_list
 *
 * @author ruoyi
 * @date 2024-08-29
 */
public class CarList extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Excel(name = "编号")
    private Long id;

    /**
     * 车辆名称
     */
    @Excel(name = "车辆名称")
    private String name;

    /**
     * 车辆颜色:0代表黑色,1代表白色,2代表迷彩
     */
    @Excel(name = "车辆颜色:0代表黑色,1代表白色,2代表迷彩")
    private Long color;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String licence;

    /**
     * 创建者
     */
    @Excel(name = "创建者")
    private Long createUser;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 车辆状态:0代表正常,1代表外借
     */
    @Excel(name = "车辆状态:0代表正常,1代表外借")
    private Long status;

    /**
     * 修改者
     */
    private Long updateUser;

    /**
     * 附件
     */
    private String accessory;

    /**
     * 删除标志:0代表未删除,1代表已删除
     */
    private Long delFlag;

    public CarUse getCarUse() {
        return carUse;
    }

    public void setCarUse(CarUse carUse) {
        this.carUse = carUse;
    }

    private CarUse carUse;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setColor(Long color) {
        this.color = color;
    }

    public Long getColor() {
        return color;
    }

    public void setLicence(String licence) {
        this.licence = licence;
    }

    public String getLicence() {
        return licence;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setAccessory(String accessory) {
        this.accessory = accessory;
    }

    public String getAccessory() {
        return accessory;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("color", getColor())
                .append("licence", getLicence())
                .append("createUser", getCreateUser())
                .append("createTime", getCreateTime())
                .append("deptId", getDeptId())
                .append("status", getStatus())
                .append("updateUser", getUpdateUser())
                .append("updateTime", getUpdateTime())
                .append("accessory", getAccessory())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
